package com.lglin.common.config.security;

import java.util.Set;
import java.util.TreeSet;

public class UnInterceptorUrls {
    public static String[] staticResourceUrl() {
        Set<String> urls = new TreeSet<>();
        urls.add("/assets/**");
        urls.add("/upload/**");
        urls.add("/view/common/**");
        urls.add("/view/product/**");
        urls.add("/view/other/**");
        urls.add("/view/user/**");
        urls.add("/view/admin/**");
        String[] arr = new String[urls.size()];
        urls.toArray(arr);
        return arr;
    }

    public static String[] postTypeUrl() {
        Set<String> urls = new TreeSet<>();
        urls.add("/user/register");
        urls.add("/user/check");
        urls.add("/user/find");
        urls.add("/product/select");
        urls.add("/product/cart");
        urls.add("/user/suborder");
        String[] arr = new String[urls.size()];
        urls.toArray(arr);
        return arr;
    }

    public static String[] getTypeUrl() {
        Set<String> urls = new TreeSet<>();
        urls.add("/");
        urls.add("/user/send/**");
        urls.add("/product/category");
        urls.add("/product/id/**");
        String[] arr = new String[urls.size()];
        urls.toArray(arr);
        return arr;
    }
}
